import request from '@/utils/request'

export function selmenu() {
    return request({
      url: '/Amenu/selAll',
      method: 'GET'
    })
  }
 export function del(data) {
      return request({
        url: '/Amenu/del?id='+data.menuid ,
        method: 'GET',
      })
}

export function add(data) {
    return request({
      url: '/Amenu/add',
      method: 'post',
      data
    })
}

export function update(data) {
    return request({
      url: '/Amenu/update',
      method: 'post',
      data
    })
}
